package com.meals.system.service;

import com.meals.system.api.system.vo.WhitesMealIndexCarouselVO;
import com.meals.system.entity.Carousel;
import com.meals.system.util.PageQueryUtil;
import com.meals.system.util.PageResult;


import java.util.List;

/**
 * Description:
 * Parm:
 * return:
 * Author: Chen
 * Date: 2021/12/4
 */
public interface WhitesMealCarouselService {
    /**
     * 返回固定数量的轮播图对象（首页调用）
     */
    List<WhitesMealIndexCarouselVO> getCarouselsForIndex(int number);


    /**
     * 后台
     */
    PageResult getCarouselPage(PageQueryUtil pageUtil);

    String saveCarousel(Carousel carousel);

    String updateCarousel(Carousel carousel);

    Carousel getCarouselById(Integer id);

    Boolean deleteBatch(Long[] ids);
}
